package com.fit.pianosheetshop.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.pianosheetshop.interfaces.Borrow;



public class BorrowsBean implements Borrows{
	private Map<String, Borrow> borrows = new HashMap<String, Borrow>();
	
	public Collection<Borrow> retrieve() {
		return borrows.values();
	}

	public Borrow save(Borrow borrow) {
		return borrows.put(borrow.getId(), borrow);
	}
	
	public Borrow retrieveSingleBorrow(String id) {
		return borrows.get(id);
	}

}
